<?php
/**
 * User: xuhong
 * Date: 2018/10/30
 */

namespace extend\mini;


class Cert
{
    public function accessToken($appid, $appsecret)
    {
        $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appid}&secret={$appsecret}";

        return getRequest($url);
    }
}